Auto merge of #2484 - alexcrichton:fix-bad-backtrack, r=brson
authorbors <bors@rust-lang.org>
Thu, 17 Mar 2016 00:50:37 +0000 (17:50 -0700)
committerbors <bors@rust-lang.org>
Thu, 17 Mar 2016 00:50:37 +0000 (17:50 -0700)
Fix caching features across backtracking

In the local loop during resolution all variables need to be reset whenever we
backtrack up a frame, but currently the `method` and `features` set are
accidentally not reset whenever we backtrack. Calculate the `method` later and
cache `features` in each frame so we can properly backtrack.

Closes #2472


Trivial merge